home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / mibwidgets.h < prev    next >
Text File  |  1993-11-12  |  7KB  |  207 lines

  1. /* Structure of mib_TextBox */
  2. /*****************************************************************************/
  3.  
  4. typedef struct _mib_TextBox {
  5.   char  *init_contents;        /* initial text contents */
  6.  
  7. } mib_TextBox;
  8.  
  9. /* mib_TextBox functions */
  10. /*****************************************************************************/
  11. mib_Widget *mib_create_TextBox(mib_Widget *, char *, char *, int, int, int,
  12.         int, int);
  13. void mib_delete_TextBox(mib_Widget *);
  14. void mib_save_TextBox(mib_Widget *, FILE *);
  15. int mib_load_TextBox(mib_Widget *, mib_Buffer *);
  16.  
  17.  
  18. /* Structure of mib_Button */
  19. /*****************************************************************************/
  20.  
  21. typedef struct _mib_Button {
  22.   char *label;            /* label on button */
  23.  
  24. } mib_Button;
  25.  
  26. /* mib_Button functions */
  27. /*****************************************************************************/
  28. mib_Widget *mib_create_Button(mib_Widget *, char *, char *, int, int, int,
  29.         int, int);
  30. void mib_delete_Button(mib_Widget *);
  31. void mib_save_Button(mib_Widget *, FILE *);
  32. int mib_load_Button(mib_Widget *, mib_Buffer *);
  33.  
  34.  
  35. /* Structure of mib_Toggle */
  36. /*****************************************************************************/
  37.  
  38. typedef struct _mib_Toggle {
  39.   char *label;            /* label on toggle */
  40.   int   isize;
  41.  
  42. } mib_Toggle;
  43.  
  44. /* mib_Toggle functions */
  45. /*****************************************************************************/
  46. mib_Widget *mib_create_Toggle(mib_Widget *, char *, char *, int, int, int,
  47.         int, int);
  48. void mib_delete_Toggle(mib_Widget *);
  49. void mib_save_Toggle(mib_Widget *, FILE *);
  50. int mib_load_Toggle(mib_Widget *, mib_Buffer *);
  51.  
  52.  
  53. /* Structure of mib_RadioBox */
  54. /*****************************************************************************/
  55. typedef struct _mib_RadioBox {
  56.   char **labels;        /* array of labels */
  57.   int    numlabel;        /* number of labels */
  58.   Widget *buttons;        /* pointers to each button */
  59.  
  60. } mib_RadioBox;
  61.  
  62. /* mib_RadioBox functions */
  63.  
  64. /*****************************************************************************/
  65. mib_Widget *mib_create_RadioBox(mib_Widget *, char *, char*, int, int, int,
  66.                     int, int);
  67. void mib_delete_RadioBox(mib_Widget *);
  68. void mib_save_RadioBox(mib_Widget *, FILE *);
  69. int mib_load_RadioBox(mib_Widget *, mib_Buffer *);
  70.  
  71.  
  72. /* Structure of mib_DrawingArea */
  73. /*****************************************************************************/
  74. typedef struct _mib_DrawingArea {
  75.   int   nothing;    /* couldn't think of anything yet */
  76.  
  77. } mib_DrawingArea;
  78.  
  79. /* mib_DrawingArea functions */
  80. /*****************************************************************************/
  81. mib_Widget *mib_create_DrawingArea(mib_Widget *, char *, char *, int, int, int,
  82.         int, int);
  83. void mib_delete_DrawingArea(mib_Widget *);
  84. void mib_save_DrawingArea(mib_Widget *, FILE *);
  85. int mib_load_DrawingArea(mib_Widget *, mib_Buffer *);
  86.  
  87.  
  88. /* Structure of mib_Label */
  89. /*****************************************************************************/
  90. typedef struct _mib_Label {
  91.   char *label;        /* text in label */
  92.  
  93. } mib_Label;
  94.  
  95. /* mib_Label functions */
  96. /*****************************************************************************/
  97. mib_Widget *mib_create_Label(mib_Widget *, char *, char *, int, int, int,
  98.         int, int);
  99. void mib_delete_Label(mib_Widget *);
  100. void mib_save_Label(mib_Widget *, FILE *);
  101. int mib_load_Label(mib_Widget *, mib_Buffer *);
  102.  
  103.  
  104. /* Structure of mib_Frame */
  105. /*****************************************************************************/
  106. typedef struct _mib_Frame {
  107.   int   shadowtype;    /* 0 = in, 1 = out, 2 = etched_in, 3 = etched_out  */
  108.  
  109. } mib_Frame;
  110.  
  111. /* mib_Frame functions */
  112. /*****************************************************************************/
  113. mib_Widget *mib_create_Frame(mib_Widget *, char *, char *, int, int, int,
  114.         int, int);
  115. void mib_delete_Frame(mib_Widget *);
  116. void mib_save_Frame(mib_Widget *, FILE *);
  117. int mib_load_Frame(mib_Widget *, mib_Buffer *);
  118.  
  119.  
  120. /* Structure of mib_ScrollBar */
  121. /*****************************************************************************/
  122. typedef struct _mib_ScrollBar {
  123.   int    orientation;
  124.  
  125. } mib_ScrollBar;
  126.  
  127. /* mib_ScrollBar functions */
  128. /*****************************************************************************/
  129. mib_Widget *mib_create_ScrollBar(mib_Widget *, char *, char *, int, int, int,
  130.         int, int);
  131. void mib_delete_ScrollBar(mib_Widget *);
  132. void mib_save_ScrollBar(mib_Widget *, FILE *);
  133. int mib_load_ScrollBar(mib_Widget *, mib_Buffer *);
  134.  
  135.  
  136. /* Structure of mib_TextBig */
  137. /*****************************************************************************/
  138. typedef struct _mib_TextBig {
  139.   int    nothing;    /* couldn't think of anything yet */
  140.  
  141. } mib_TextBig;
  142.  
  143. /* mib_TextBig functions */
  144. /*****************************************************************************/
  145. mib_Widget *mib_create_TextBig(mib_Widget *, char *, char *, int, int, int, int, int);
  146. void mib_delete_TextBig(mib_Widget *);
  147. void mib_save_TextBig(mib_Widget *, FILE *);
  148. int mib_load_TextBig(mib_Widget *, mib_Buffer *);
  149.  
  150.  
  151. /* Structure of mib_List */
  152. /*****************************************************************************/
  153. typedef struct _mib_List {
  154.   Widget real_list;
  155.  
  156. } mib_List;
  157.  
  158. /* mib_List functions */
  159. /*****************************************************************************/
  160. mib_Widget *mib_create_List(mib_Widget *, char *, char *, int, int, int,
  161.                 int, int);
  162. void mib_delete_List(mib_Widget *);
  163. void mib_save_List(mib_Widget *, FILE *);
  164. int mib_load_List(mib_Widget *, mib_Buffer *);
  165.  
  166. /* Structure of mib_Scale */
  167. /*****************************************************************************/
  168. typedef struct _mib_Scale {
  169.   int   orientation;
  170.  
  171. } mib_Scale;
  172.  
  173. /* mib_Scale functions */
  174. /*****************************************************************************/
  175. mib_Widget *mib_create_Scale(mib_Widget *, char *, char *, int, int, int,
  176.                 int, int);
  177. void mib_delete_Scale(mib_Widget *);
  178. void mib_save_Scale(mib_Widget *, FILE *);
  179. int mib_load_Scale(mib_Widget *, mib_Buffer *);
  180.  
  181. /* Structure of mib_Menu */
  182. /*****************************************************************************/
  183. typedef struct _mib_Menu {
  184.   int       numitems;        /* number of items in menu*/
  185.   MenuItem *my_menu;        /* array of menu items */
  186.   Widget   *items;        /* pointers to each item */
  187.  
  188. } mib_Menu;
  189.  
  190. /* mib_Menu functions */
  191. /*****************************************************************************/
  192. mib_Widget *mib_create_Menu(mib_Widget *, char *, char *, int, int, int,
  193.         int, int);
  194. void mib_delete_Menu(mib_Widget *);
  195. void mib_save_Menu(mib_Widget *, FILE *);
  196. int mib_load_Menu(mib_Widget *, mib_Buffer *);
  197.  
  198. /*****************************************************************************/
  199.  
  200. typedef struct _mib_widget_funcs {
  201.   char        *name;
  202.   mib_Widget    *(*mib_create)();
  203.   void         (*mib_delete)();
  204.   void         (*mib_save)();
  205.   int         (*mib_load)();
  206. } mib_widget_funcs;
  207.